package com.wbp.cms.core.product.dao;

import com.wbp.cms.client.product.domain.ProductStatisticsDO;
import com.wbp.cms.core.dao.BaseDao;

/**
 * @Description: 
 * @Department:
 * @author andy.lhc
 * @date 2016年3月15日 上午10:01:34 
 */
public class ProductStatisticsDAO extends BaseDao {

  
  public Long  insert(ProductStatisticsDO  productStatisticsDO){
    super.insert("ProductStatisticsMapper.insert", productStatisticsDO) ;
    return  productStatisticsDO.getId() ;
  }
  
  public int  update(ProductStatisticsDO  productStatisticsDO){
      return  super.update("ProductStatisticsMapper.update", productStatisticsDO) ;
  }
   
  public ProductStatisticsDO  load(Long  id){
    Object obj = super.selectOneObject("ProductStatisticsMapper.load", id) ;
    return obj == null ? null : (ProductStatisticsDO)obj ;
  }
  
  
}
